const path = require('path')
module.exports = {
  mode: 'none',
  entry: './main.js',
  output: {
    filename: 'bundle.js',
    path: path.join(__dirname, 'dist'),
  },
  module: {
    rules: [
      {
        test: /\.md$/,
        // use: './markdown-loader',
        use: [
          // 使用html-loader处理markdown-loader返回的html字符串
          'html-loader',
          './markdown-loader'
        ]
      },
    ],
  },
}
